package com.disgnpattern.learn.chapter7;

/**
 * @author dxy
 * @version 1.0
 * @date 2021/10/22 10:04
 * @decripton todo
 */
public class ProxyTest {
    public static void main(String[] args) {
        SchoolGirl xiaojiao = new SchoolGirl();
        xiaojiao.setName("小娇");

        Proxy proxy = new Proxy(new Pursuit(xiaojiao));
        proxy.giveChocolate();
        proxy.giveDolls();
        proxy.giveFlowers();
    }
}
